<?php

class MidAutumnGetHeadFrameAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * 获取玩家头像框仓库
     * @param $userId
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);

        return $this->buildResponse(
            MidAutumnService::get()->userHeadFrames($userId, $reqTime)
        );
    }
}